package Interface;

import java.awt.Graphics;
import java.awt.GridBagLayout;
import java.awt.Image;

import javax.swing.JPanel;

public class panelAfficherImage extends JPanel {

	private static final long serialVersionUID = 1L;
	private Image jImage ;
	private int width ;
	private int height ;

	/**
	 * This is the default constructor
	 */
	public panelAfficherImage(String url,int width, int height ) {
		super();
		jImage = getToolkit().getImage(url);
		this.width = width;
		this.height = height;
		this.setSize(width, height);
	}
	
	public void paintComponent(Graphics g) {
        super.paintComponent(g);
        g.drawImage(jImage,0,0,100,100,null);
        
} 

	
}
